<?php
    include ('../inc/config.php'); 

   	foreach($_GET['listItem'] as $clave=>$valor){
		$ok = $db->Execute("update galerias_fotos set orden='$clave' where id='$valor'");	    		
   	}
   	die();
?>